package com.feri.gpstudy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
public class Medication {
    private Integer mid;
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    private Double price;
    private String mname;
    private String mfacturer;

    public Medication(Date ctime, Double price, String mname, String mfacturer) {
        this.ctime = ctime;
        this.price = price;
        this.mname = mname;
        this.mfacturer = mfacturer;
    }
}
